import { computed as n } from "vue";
import { _ as c } from "./kafka.vue_vue_type_script_setup_true_lang.DrTjPANP.js";
import { _ as o } from "./attr-item.vue_vue_type_script_setup_true_lang.ABkxhIcO.js";
import { p as d } from "./index.Bbfhrq76.js";
const u = (a) => ({
  graphShadow: a.graphShadow,
  cell: a.cell
}), S = (a) => {
  let p = [
    {
      parameter: "bootstrap.servers",
      message: "请选择kafka连接"
    },
    {
      parameter: "topic",
      message: "请选择TOPIC"
    }
  ];
  const s = ["org.apache.nifi.processors.kafka.pubsub.ConsumeKafka_2_6_01"], i = [
    "topic",
    "bootstrap.servers",
    "input字段（自动填入）",
    "output字段（自动填入）"
  ], e = n(() => !a.isUseOpenMetadata.value), m = [
    { tag: "div", "v-if": a.isUseOpenMetadata, cls: [
      {
        tag: c,
        ":formdata": "formData",
        prop: "config.properties",
        isFormElem: !1,
        label: "",
        ":data": "formData",
        setup({ params: t }) {
          return { graphShadowCell: u(t) };
        },
        ":graphShadowCell": "graphShadowCell"
      }
    ] },
    { tag: o, prop: "bootstrap.servers", ":data": "formData.config.properties", "v-if": e },
    { tag: o, prop: "topic", ":data": "formData.config.properties", "v-if": e },
    { tag: o, prop: "group.id", ":data": "formData.config.properties", "v-if": e }
  ];
  return { name: s, excludeKeys: i, selfFormColumn: m, hooksSubmit: (t, f) => {
    var r;
    let l = (r = f.event.form) == null ? void 0 : r.data.value[t.id].config.properties;
    d(l, p);
  } };
};
export {
  S as default
};
